package com.it.mapper;

import com.it.pojo.MyCoupon;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MyCouponMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MyCoupon record);

    int insertSelective(MyCoupon record);

    MyCoupon selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MyCoupon record);

    int updateByPrimaryKey(MyCoupon record);

    //根据用户编号 查询拥有的满减类型红包详细信息
    List<MyCoupon> selectCouponsByOwnerId(Integer ownerid);
    //根据用户编号 查询拥有的无门槛类型红包详细信息
    List<MyCoupon> selectThresholdByOwnerId(Integer ownerid);
}